<?php
include_once('common/header.php');
$strReferer	= isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
$objVfriendUser = new Vfriend_User();
$intAddInfo		= $objVfriendUser->getAddinfo($AppUI->id);
if($AppUI->id > 0 && ($strReferer == LINK_USER_PERSON || $intAddInfo == 1)) { 
	$objCommon = new Vfriend_Common();
	$this->view->arrMusic	= $objCommon->getPreference(QUESTION_ID_MUSIC);
	$this->view->arrSport	= $objCommon->getPreference(QUESTION_ID_SPORT);
	$this->view->arrDrama	= $objCommon->getPreference(QUESTION_ID_DRAMA);
	$this->view->arrMovie	= $objCommon->getPreference(QUESTION_ID_MOVIE);
	$this->view->arrOther	= $objCommon->getPreference(QUESTION_ID_OTHER);
}
else {
	Vfriend_Function::redirect(HOST_VFRIEND);
	exit();
}
?>